//
//  StoreNameViewController.m
//  Manage
//
//  Created by 杨康 on 2017/11/15.
//  Copyright © 2017年 杨康. All rights reserved.
//

#import "StoreNameViewController.h"

@interface StoreNameViewController ()

@end

@implementation StoreNameViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"编辑门店名称";
    
    UIButton *leftButton=(UIButton *)self.navigationItem.leftBarButtonItem.customView;
    leftButton.selected=YES;
    
    
    //账户名
    YKTextField *nameTF=[SingLeton myTextFieldsecure:NO andkeyboardType:UIKeyboardTypeDefault andplaceholder:@"请输入门店名称" andLeftImage:nil RequestSuccess:^(YKTextField *textField, NSRange range, NSString *string) {
    }];
    
    [self.view addSubview:nameTF];
    [nameTF mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(10+TOP_HEIGHT);
        make.left.mas_equalTo(0);
        make.size.mas_equalTo(CGSizeMake(SCREEN_WIDTH, 44));
    }];
    
    YKButton *saveButton=[SingLeton endButton:[UIColor colorQ] andTitle:@"保存" RequestSuccess:^(UIButton *btn) {
        
    }];
    [self.view addSubview:saveButton];
    [saveButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(15);
        make.top.mas_equalTo(nameTF.mas_bottom).mas_offset(20);
        make.size.mas_equalTo(CGSizeMake(SCREEN_WIDTH-30, 44));
    }];
    
}



@end
